package com.playcrab.adouban.service;

import com.playcrab.adouban.util.Constants;

import android.content.Context;
import android.content.Intent;
import android.util.Log; 

/**  *
 * @author kevinye
 */
public class BroadcastReceiver extends android.content.BroadcastReceiver {

    private static final String LOG_TAG = "BroadcastReceiver";

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.v(LOG_TAG, "Received intent: " + intent);

        if (Constants.ACTION_NOTIFICATION_CLEARED.equals(intent.getAction()))
            UpdatesNotifier.notificationActive = false;

        //TODO: handle low battery intents to reduce timer interval of CheckingService, etc...
    }

}
